home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
comms
/
ts3j.zip
/
SUBSTIT.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-12-22
|
2KB
|
45 lines
echo off
rem this batch file uses the included SUBST.EXE utility.
rem just type in "SUBST" to get its help.
echo ════════════════════════════════════════════════════════════════════════
echo the baud should be %2
echo the port should be %1
echo ════════════════════════════════════════════════════════════════════════
rem pause
if "%1" == "1" goto one
if "%1" == "2" goto two
cls
echo .
echo . SUBSTIT.BAT changes COM1 to COM2, or vice versa, in the local batch
echo . files. You should include the COM port number: 1 or 2
echo .
pause
goto end
:one
subst -i -r COM2 COM1 hangup.bat callwait.bat mnuhost.bat
subst -i -r COM2 COM1 setmode.bat mremote.bat tsbasic.bat
subst -r /2 /1 msetup.bat
goto baud
:two
subst -i -r COM1 COM2 hangup.bat callwait.bat mnuhost.bat
subst -i -r COM1 COM2 setmode.bat mremote.bat tsbasic.bat
subst -r /1 /2 msetup.bat
rem Running subst on all of the .bat files changes this one.
rem subst -i -r COM1 COM2 *.bat
goto baud
:baud
echo .
echo . The baud should be %2
echo . I am unable to substitute the new value because I don't know the
echo . current value. The batch files you MIGHT use that contain baud
echo . settings are: MAKECALL.BAT SETMODE.BAT CALLWAIT.BAT.
echo .
echo . Look for MODE=9600 (or some number) and change the number to %2
echo . Run the local SUBST.EXE to see how it can help you make the changes.
echo . For example "SUBST -r 9600 14400 that.bat" to go from 9600 to 14400.
echo .
PAUSE
:end